Repository navigation
Raise minimum Swift, Xcode, and platform versions - #88
Merged
dfed merged 2 commits intoNov 17, 2026
Merged
Conversation
This was referenced Nov 14, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## claude/2.0-2-cancel-tasks-outside-lock #88 +/- ##
========================================================================
Coverage 100.00% 100.00%
========================================================================
Files 12 12
Lines 1510 1509 -1
========================================================================
- Hits 1510 1509 -1
🚀 New features to boost your workflow:
|
Begin a breaking-change series for 2.0.0:
- Require Swift tools version 6.4, and build and lint with Swift 6.4 on
Linux and Xcode 27.2 on macOS.
- Raise the platform minimums to the first releases that ship the
Synchronization module's `Mutex`: macOS 15, iOS 18, tvOS 18,
watchOS 11, Mac Catalyst 18, and visionOS 2.
The `xcode-27` runner image ships the Xcode 27.2 simulator runtimes, so
CI no longer downloads platforms. Swift 6.4 builds with Swift Build by
default, so the Linux coverage step reads the test binary from the new
products directory. Tests declare never-reassigned weak references
with `weak let`, which Swift 6.4 otherwise warns about. The tests'
`DispatchQueueExecutor` implements the `ExecutorJob` form of
`enqueue(_:)`, which the raised minimums allow.
CI jobs and build platforms are now named without tool or OS versions
("Build Xcode (iOS,watchOS)", "Swift Build Xcode", "Build and Test on
Linux"), so that future toolchain updates do not change the names of
the checks that branch protection requires. The required checks on
`main` need to be updated once, when this change lands.
The renamed jobs keep their timeouts. The simulator jobs' longest run
so far on the `xcode-27` image took about 25 minutes, half of their
50-minute timeout, and the others still take about a minute, well
within their 15 minutes.
The Linux job's check that every coverage counter update is atomic
reads the same binary as the coverage export, `AsyncQueueTests.so`.
Swift Build passes `-instrprof-atomic-counter-update-all` through on
Linux, so the check passes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM
dfed
force-pushed
the
claude/2.0-3-raise-minimums
branch
from
November 15, 2026 15:45
b6c5c57 to
cf39e86
Compare
Owner
Author
|
Correction: this PR's new commit, I had said CodeQL couldn't analyze Swift 6.4 at all and that this needed a decision. That was wrong. The Generated by Claude Code |
This was referenced Nov 16, 2026
On the xcode-27 image, SwiftPM's sandbox-exec cannot launch the compiled
package manifest under the CodeQL tracer ("Bad CPU type in executable"),
so the Swift analysis failed every run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This starts the breaking-change series for 2.0.0.
xcode-27runner image with Xcode 27.2, and Linux CI usesswift:6.4containers. Thexcode-27image ships the 27.2 simulator runtimes, so CI no longer downloads platforms.$(swift build -c release --show-bin-path)/AsyncQueueTests.so: both "Check Atomic Coverage Counters" from Update coverage counters atomically and time out test jobs #95, which still writes the disassembly to.build/disassembly.txtbefore reading it, and the coverage export. Swift Build passes-instrprof-atomic-counter-update-allthrough on Linux, so the check passes.xcode-27image took about 25 minutes (visionOS in run 43565550543, 25 min 13 s), half of their 50-minute timeout, and the others still take about a minute.Synchronization.Mutex: macOS 15, iOS 18, tvOS 18, watchOS 11, Mac Catalyst 18, and visionOS 2.weak varreferences that are never reassigned becomeweak let, because Swift 6.4 warns about them and CI treats warnings as errors.DispatchQueueExecutor, which Cancel tasks outside of CancellableQueue's lock #87 added for the spinningCancellableQueuetest, now implementsenqueue(_ job: consuming ExecutorJob), which the raised minimums allow, instead of theUnownedJobform thatmain's deployment targets needed. It also drops its explicitasUnownedSerialExecutor()in favor of the standard library's.from: "2.0.0".Action needed: branch protection
CI jobs are now named without tool or OS versions, so later toolchain bumps won't change the names of required checks. Five of the six required checks on
mainchange names with this PR. Update them when this PR lands:"Check Markdown links" is unchanged.
Series
PR 4 of 10. It is stacked on #87.
Validation
Each commit in the series was validated on its own, on Linux with Swift 6.4.2, from a
git archivecopy:-warnings-as-errors, andswiftformat --lintis clean.ci.ymlunderbash -e, pass, including the atomic-counter check, which fails when the flag is dropped. No line inSourcesorTestsreads zero in the CI run.DispatchQueueExecutor'sExecutorJobform, which this PR adopts, was rechecked:cancelTasks_actorQueue_cancelsCurrentlyExecutingAndPendingTasks, whose spinner runs on it, fails 10 of 10 runs (3 pinned to one CPU) when the firstActorQueueinitializer ofCancellableQueueskips registering its task, passes 10 of 10 on the real code, and passes--repetitions 100 --repeat-until failunpinned and pinned. Earlier rounds checked the other tests against mutants the same way.Synchronization.Mutexeven in trivially correct code, so the TSan runs replaceMutexwith a pthread-based lock that TSan understands.Nothing was run on Apple platforms. CI is the first run there.
Review checklist
Left for code review because no test can check them:
timeout-minutes; a test that hangs shows up as a job stopped after 15 minutes (50 for the simulator jobs).xcode-27image here, includingDispatchQueueExecutor'sExecutorJobform under the raised minimums and-warnings-as-errors. CI is the first run there.🤖 Generated with Claude Code
https://claude.ai/code/session_01HLuVQLsTNvRnyh155N25UM